//
//  MBSongDetailController.h
//  MiBaoTu
//
//  Created by 彭鹏 on 16/9/18.
//  Copyright © 2016年 com.caesartech15. All rights reserved.
//

#import "MBBaseController.h"
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "Music.h"
#import "RightViewController.h"
#import "DXSemiViewControllerCategory.h"
@interface MBSongDetailController : MBBaseController<UITableViewDataSource, UITableViewDelegate,AVAudioPlayerDelegate>
{
    AVPlayer *audioPlayer;
    NSMutableArray *musicArray;                         //歌曲列表
    BOOL isPlay;                                        //是否处于播放状态
    BOOL isCircle;                                      //判断是否允许循环播放
    BOOL musicTableViewHidden;
    float tempVolume;
    Music *currentMusic;
    NSMutableArray *timeArray;
    NSMutableDictionary *LRCDictionary;
    NSUInteger lrcLineNumber;
    NSUInteger musicArrayNumber;                        //歌曲列表中第几条
}

@property (nonatomic, strong) NSMutableArray *musicArray;

- (IBAction)aboveMusic:(id)sender;
- (IBAction)nextMusic:(id)sender;

- (IBAction)play:(id)sender;
@property (strong, nonatomic) IBOutlet UIButton *playBtn;

@property (strong, nonatomic) IBOutlet UISlider *progressSlider;
- (IBAction)progressChange:(id)sender;


- (IBAction)circle:(id)sender;
@property (strong, nonatomic) IBOutlet UIButton *circleBtn;

@property (weak, nonatomic) IBOutlet UILabel *songName;
@property (weak, nonatomic) IBOutlet UILabel *singer;


@property (strong, nonatomic) IBOutlet UILabel *currentTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *totalTimeLabel;

@property (strong, nonatomic) IBOutlet UITableView *musicTableView;

@property (strong, nonatomic) IBOutlet UITableView *lrcTableView;
//显示歌曲目录


- (void)playTable:(NSUInteger)tableNumber;

@property (nonatomic,assign)BOOL isFromOnLine; //是否从在线电台跳转

@end
